package org.kfive.nova.design.behavior.Command;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 15-7-8
 * Time: 下午10:22
 * To change this template use File | Settings | File Templates.
 */
public class Invoker {

    private ICommand command;

    public Invoker(){}

    public void setCommand(ICommand command){
        this.command = command;
    }

    public void action(){
        this.command.execute();
    }


}
